package com.example.ch04jdbcuser.service.impl;

import com.example.ch04jdbcuser.dao.UserInfoDao;
import com.example.ch04jdbcuser.entity.UserInfo;
import com.example.ch04jdbcuser.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @description:
 * @author:ScorpioWang
 * @date:2021-10-31-23-29
 */
@Service
public class UserInfoServiceImpl implements UserInfoService {
    @Autowired
    private UserInfoDao dao;

    @Override
    public UserInfo findUserInfo(String username) {
        return dao.findByUserName(username);
    }
}
